Explictly init tm struct.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 23 Mar 2006 17:22:25 +0000 (17:22 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 23 Mar 2006 17:22:25 +0000 (17:22 +0000)
gpsbabel/holux.c

index a020a8bbeb85aea661201ea8e9154217f2ba3953..f3f44876ace8afeb8dfd99c29d87f1de14eafd2a 100644 (file)
@@ -90,6 +90,7 @@ static void data_read(void)
        struct tm tm;
        struct tm *ptm;
 
+    memset(&tm, 0, sizeof(tm));
 
     HxWpt = xcalloc(GM100_WPO_FILE_SIZE, 1);